package design.pattern.建造者模式;

/**
 * 客户端代码
 */
public class MainClass {
    public static void main(String[] args) {

        MealBuilder builderA = new SubMealBuildA();
        MealBuilder builderB = new SubMealBuildB();
        Director director = new Director(builderA);

        director.constuct();
        builderA.getMeal().show();

        director.setBuilder(builderB);
        director.constuct();
        builderB.getMeal().show();

    }
}
